package qe.spider.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

//分时数据
@Data
public class TimeSharing {
    private BigDecimal selval;
    private BigDecimal ttag;
    private String errcode;
    private TSTrends trend;
    private TSChouMaList chouma;
    private Map<String, Object> pankou;
    private List<List<Object>> stockplate;
    private List<List<Object>> careplate;
    private List<Object> range;
    private Map<String, Object> bid;

    public String getStockCode() {
        return trend.getCode();
    }
    public String getStockName() {
        return trend.getName();
    }
    public Date getTradeTime(){
        return new Date(trend.getTime().longValue() * 1000);
    }
}

@Data
class TSTrends {
    private String code;
    private String day;
    private BigDecimal time;
    private String Name;
    private String Status;

    private BigDecimal preclose_px;
    private BigDecimal hprice;
    private BigDecimal lprice;
    private BigDecimal begin_px;
    private List<List<String>> trend;
}

@Data
class TSChouMaList {
    private String Date;
    private List<Map<String, Object>> List;
}

@Data
class TSChouMa {
    private String Time;
    private BigDecimal DuiDaoCount;
    private BigDecimal DuiDaoMoney;
    private BigDecimal YiDong;
    private BigDecimal CJJE;
    private BigDecimal ZLBuy;
    private BigDecimal ZLSell;
    private BigDecimal ZLJE;
    private Map<String, TSCM> CM;
}

@Data
class TSCM {
    private String ActiveBuy;
    private String PassiveBuy;
    private String ActiveSell;
    private String PassiveSell;
    private String DDJE;
}